**Replication Analyses for Electoral Contexts across Levels of Office
**Political Behavior
**Anna Gunderson, Emily Rains, Nichole Bauer, Annie Sheehan-Dean

**Note that the data we use from the Wesleyan Media Project prohibits us from posting the raw data online. Others can obtain the data we use here: https://mediaproject.wesleyan.edu/dataaccess/
**Our raw data file, AllYearsAllAds_2012_2020, is therefore not publicly posted, though we include all the analysis steps here as if it was posted. Any scholar who purchases the WMP data and signs their contract can email Nichole Bauer, nbauer4@lsu.edu for our replication data.

**Table 3: Percent of Feminine and Masculine Ads by Branch of Office and Candidate Gender
tab fem_traits1 female_cand if president==1&exclude==0, col
tab masc_traits1 female_cand if president==1&exclude==0, col
tab both_traits1 female_cand if president==1&exclude==0, col

tab fem_traits1 female_cand if senate==1&exclude==0, col
tab masc_traits1 female_cand if senate==1&exclude==0, col
tab both_traits1 female_cand if senate==1&exclude==0, col

tab fem_traits1 female_cand if gov==1&exclude==0, col
tab masc_traits1 female_cand if gov==1&exclude==0, col
tab both_traits1 female_cand if  gov==1&exclude==0, col

tab fem_traits1 female_cand if house==1&exclude==0, col
tab masc_traits1 female_cand if house==1&exclude==0, col
tab both_traits1 female_cand if house==1&exclude==0, col

tab fem_traits1 female_cand if state_exec==1&exclude==0, col
tab masc_traits1 female_cand if state_exec==1&exclude==0, col
tab both_traits1 female_cand if state_exec==1&exclude==0, col

tab fem_traits1 female_cand if state_leg==1&exclude==0, col
tab masc_traits1 female_cand if state_leg==1&exclude==0, col
tab both_traits1 female_cand if state_leg==1&exclude==0, col

tab fem_traits1 female_cand if local_leg==1&exclude==0, col
tab masc_traits1 female_cand if local_leg==1&exclude==0, col
tab both_traits1 female_cand if local_leg==1&exclude==0, col

tab fem_traits1 female_cand if local_exec==1&exclude==0, col
tab masc_traits1 female_cand if local_exec==1&exclude==0, col
tab both_traits1 female_cand if local_exec==1&exclude==0, col

**Appendix Table A7, column 1 Figure 1
logit fem_traits1 female_cand##state_level##legislative_offices female_cand##local_office##legislative_offices democrat_cand republican_cand positive_ad contrast_ad log_cost market_size_log masc_traits1 year2014 year2016 year2018 year2020 if exclude==0

**Appendix Table A7, column 2, Figure 2
logit masc_traits1 female_cand##state_level##legislative_offices female_cand##local_office##legislative_offices democrat_cand republican_cand positive_ad contrast_ad log_cost fem_traits1 market_size_log  year2014 year2016 year2018 year2020 if exclude==0

**Appendix Table A7, column 3, Figure 3
logit both_traits1 female_cand##state_level##legislative_offices female_cand##local_office##legislative_offices democrat_cand republican_cand positive_ad contrast_ad log_cost market_size_log year2014 year2016 year2018 year2020 if exclude==0


**Appendix Table A8
logit fem_traits1 female_cand  democrat_cand republican_cand positive_ad contrast_ad log_cost masc_traits1 market_size_log year2014 year2016 year2018 year2020 if exclude==0&schoolboard==1

logit masc_traits1 female_cand  democrat_cand republican_cand positive_ad contrast_ad log_cost masc_traits1  market_size_log year2014 year2016 year2018 year2020 if exclude==0&schoolboard==1

logit both_traits1 female_cand  democrat_cand republican_cand positive_ad contrast_ad log_cost  market_size_log year2014 year2016 year2018 year2020 if exclude==0&schoolboard==1

logit fem_traits1 female_cand  democrat_cand republican_cand positive_ad contrast_ad log_cost masc_traits1   market_size_log year2014 year2016 year2018 year2020 if exclude==0&laworder==1

logit masc_traits1 female_cand  democrat_cand republican_cand positive_ad contrast_ad log_cost fem_traits1  market_size_log  year2014 year2016 year2018 year2020 if exclude==0&laworder==1

logit both_traits1 female_cand  democrat_cand republican_cand positive_ad contrast_ad log_cost  market_size_log year2014 year2016 year2018 year2020 if exclude==0&laworder==1


**Appendix Table A9
**dem v. rep differences
logit fem_traits1 female_cand##state_level##legislative_offices female_cand##local_office##legislative_offices  positive_ad contrast_ad log_cost masc_traits1 market_size_log year2014 year2016 year2018 year2020 if exclude==0&democrat_cand==1

logit fem_traits1 female_cand##state_level##legislative_offices female_cand##local_office##legislative_offices  positive_ad contrast_ad log_cost masc_traits1 market_size_log year2014 year2016 year2018 year2020 if exclude==0&democrat_cand==0

logit masc_traits1 female_cand##state_level##legislative_offices female_cand##local_office##legislative_offices  positive_ad contrast_ad log_cost fem_traits1 market_size_log year2014 year2016 year2018 year2020 if exclude==0&democrat_cand==1

logit masc_traits1 female_cand##state_level##legislative_offices female_cand##local_office##legislative_offices  positive_ad contrast_ad log_cost fem_traits1 market_size_log year2014 year2016 year2018 year2020 if exclude==0&democrat_cand==0

logit both_traits1 female_cand##state_level##legislative_offices female_cand##local_office##legislative_offices  positive_ad contrast_ad log_cost  market_size_log year2014 year2016 year2018 year2020 if exclude==0&democrat_cand==1

logit both_traits1 female_cand##state_level##legislative_offices female_cand##local_office##legislative_offices  positive_ad contrast_ad log_cost market_size_log year2014 year2016 year2018 year2020 if exclude==0&democrat_cand==0

**Table A10
logit fem_traits1 female_cand##legislative_offices##partisan_election democrat_cand republican_cand positive_ad contrast_ad log_cost market_size_log masc_traits1 year2014 year2016 year2018 year2020 if local_office==1&exclude==0

logit masc_traits1 female_cand##legislative_offices##partisan_election democrat_cand republican_cand positive_ad contrast_ad log_cost market_size_log fem_traits1 year2014 year2016 year2018 year2020 if local_office==1&exclude==0

logit both_traits1 female_cand##legislative_offices##partisan_election democrat_cand republican_cand positive_ad contrast_ad log_cost market_size_log fem_traits1 year2014 year2016 year2018 year2020 if local_office==1&exclude==0

